import Vue from 'vue'
import App from './App'
import store from './store'
import plugin from './js_sdk/uni-admin/plugin'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import VueTinymce from "@packy-tang/vue-tinymce"
Vue.config.productionTip = false

Vue.use(plugin)
Vue.use(ElementUI);
Vue.use(VueTinymce)

Vue.prototype.msgSuccess = function (msg) {
    this.$message({ showClose: true, message: msg, type: "success" });
}

Vue.prototype.msgError = function (msg) {
    this.$message({ showClose: true, message: msg, type: "error" });
}

Vue.prototype.msgInfo = function (msg) {
    this.$message.info(msg);
}

App.mpType = 'app'

const app = new Vue({
    store,
    ...App
})
app.$mount()
